#include <iostream>
#include "MyQueue.h"
using namespace std;
int main() {
	MyQueue<int> test;
	/*
	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();
	*/

	test.push(1);
	test.push(2);
	test.push(3);
	test.push(4);

	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();

	test.pop();
	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();

	test.pop();
	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();

	test.pop();
	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();

	test.push(5);
	test.push(6);
	test.push(7);
	test.push(8);
	test.push(9);
	test.push(10);
	cout << test.front() << endl;
	cout << test.back() << endl;
	test.show_begin();
	test.show_end();
	test.show_cap();
	system("pause");
	return 0;
}